home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 3: Developer Tools
/
Linux Cubed Series 3 - Developer Tools.iso
/
devel
/
make
/
icmake-6.000
/
icmake-6
/
icmake
/
exec
/
fungetpi.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-02-08
|
446 b
|
29 lines
/*
\funcref{fun\_getpid}{void fun\_getpid ()}
{}
{}
{newvar()}
{}
{fungetpi.c}
{
The process ID number is returned as an {\em e\_int} variable.
Under MS-DOS, this number is set to the paragraph of the PSP. Under
UNIX, the true process ID number is returned.
}
*/
#include "icm-exec.h"
void fun_getpid ()
{
reg.type = e_int;
reg.vu.intval = (INT16)
#ifndef MSDOS
getpid ();
#else
_psp;
#endif
}